import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
//class RoleItem
    
    export  class RoleItem /* flash.display.Sprite */
    {
        constructor()
        {
            
            this._bitmap = new Object /* flash.display.Bitmap */();
            addChild(this._bitmap);
            this.mouseEnabled = false;
            this.mouseChildren = false;
            LoaderHelp.addResCallBack(ResFileConst.mapUI, this.onMapUIResLoadedHandler);
            return;
        }

        protected onMapUIResLoadedHandler(): void
        {
            this._bitmap.bitmapData = GlobalClass.getBitmapData(ImagesConst.MapUIRolePosition);
            return;
        }

        /* internal */ /* var */_bitmap: Object /* flash.display.Bitmap */;
    }
